| Conditions | 2 |
| Total Lines | 22 |
| Code Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | import * as firebase from "firebase"; |
||
| 23 | |||
| 24 | public getProviderById(providerId: string): IAuthProvider | null { |
||
| 25 | switch (providerId) { |
||
| 26 | case "password": |
||
| 27 | return this.authEmail; |
||
| 28 | case "phone": |
||
| 29 | return this.authPhone; |
||
| 30 | case "facebook.com": |
||
| 31 | return this.authFacebook; |
||
| 32 | case "github.com": |
||
| 33 | return this.authGithub; |
||
| 34 | case "google.com": |
||
| 35 | return this.authGoogle; |
||
| 36 | case "twitter.com": |
||
| 37 | return this.authTwitter; |
||
| 38 | case "apple.com": |
||
| 39 | case "yahoo.com": |
||
| 40 | case "hotmail.com": |
||
| 41 | throw new Error(`Provider ${providerId} not implemented!`); |
||
| 42 | } |
||
| 43 | |||
| 44 | return null; |
||
| 45 | } |
||
| 55 |